﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SYLB.ascx.cs" Inherits="TaoSH.View.SYLB" %>
<script>

    $(document).ready(function () {
        $(".selSP").click(function () {
            ComFunJS.SelData($(this).parent().parent().find(".tbSPID"), 'SPGL', $(this).val());
        })
    });
</script>

<div class="row">
    <div class="col-xs-10">
        <div class="form-group">
            <label>类别名称</label>
            <asp:TextBox ID="conLBName" runat="server" CssClass="form-control"></asp:TextBox>

        </div>
        <div class="form-group">
            <label>类别描述</label>
            <asp:TextBox ID="conLBMS" runat="server" CssClass="form-control"></asp:TextBox>
        </div>
    </div>
    <div class="col-xs-2">
    </div>
</div>
<div class="row" ms-controller="MangnerSPLB">
    <div class="col-xs-10">
        <table class="table table-bordered table-hover table-hover">
            <thead>
                <tr>
                    <th style="width:100px">序号 </th>
                    <th>商品编码 </th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater runat="server" ID="conRepSP">
                    <ItemTemplate>
                        <tr>
                            <td><%# Container.ItemIndex + 1%> </td>
                            <td>
                                <div class="input-group">
                                    <asp:HiddenField    runat="server" Value='<%# Eval("ID")%>'  ID="hidID" />
                                    <asp:TextBox runat="server" class="form-control tbSPID" ID="conSPID" Text='<%# Eval("PID") %>' />
                                    <span class="input-group-btn">
                                        <a href="#" class="btn btn-info selSP">选择商品</a>
                                    </span>

                                </div>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>

            </tbody>
        </table>

        <input type="hidden" value="" class="spdata" runat="server" id="hidSPData" />
    </div>
</div>





